﻿namespace Shared.Service.DataPermissions
{
    /// <summary>
    /// 数据范围
    /// </summary>
    public class DataPermissionContext
    {
        /// <summary>
        /// 品牌数据权限 默认 YOULU
        /// </summary>
        public BrandDataPermissionScope Brand { get; set; } = BrandDataPermissionScope.YouLu;

        /// <summary>
        /// 门店数据权限
        /// </summary>
        public SchoolDataPermission School { get; set; } = SchoolDataPermission.Disable;

        /// <summary>
        /// 部门级数据权限
        /// </summary>
        public DepartmentDataPermission Department { get; set; } = DepartmentDataPermission.Disable;

        /// <summary>
        /// 所属人数据权限
        /// </summary>
        public OwnerDataPermission Owner { get; set; } = OwnerDataPermission.Disable;

        /// <summary>
        /// 客户模块 特殊类型权限
        /// </summary>
        public SpecialDataPermission Special { get; set; } = SpecialDataPermission.Disable;
    }
}
